home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Run Magazine ReRun 1987 March & April
/
rerun-1987-03-04.d64
/
pick a letter
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
3KB
|
81 lines
10 dimd$(24):d$(0)=chr$(19):forx=1to24:d$(x)=d$(x-1)+chr$(17):next
20 forx=54272to54295:pokex,0:next:poke54296,15
30 printchr$(147):poke53280,6:poke53281,6:poke646,1
40 printd$(6)tab(5)"pppp iiii cccc k k aaaa"
50 printtab(5)"p p i c k k a a"
60 printtab(5)"pppp i c kk aaaa"
70 printtab(5)"p i c k k a a"
80 printtab(5)"p iiii cccc k k a a"
90 printd$(15)tab(5)"l eeee tttt tttt eeee rrrr"
100 printtab(5)"l e t t e r r"
110 printtab(5)"l eee t t eee rrrr"
120 printtab(5)"l e t t e r r"
130 printtab(5)"llll eeee t t eeee r r"
140 forx=1064to1103:pokex,90:pokex+54272,1:next
150 forx=1143to2023step40:pokex,90:pokex+54272,1:next
160 forx=2022to1984step-1:pokex,90:pokex+54272,1:next
170 forx=1944to1104step-40:pokex,90:pokex+54272,1:next
180 forx=1to5:poke53280,2:poke53281,2:forde=1to200:next
190 poke53280,6:poke53281,6:forde=1to200:next:next:forde=1to500:next
200 pa$="press fire button to play again"
210 forx=1to10:readan$(x),cl$(x):next:pp(1)=1436:forx=2to9:pp(x)=pp(x-1)+2:next
220 forx=1to10:an(x)=0:next:le=0:sc=0:poke53280,3:poke53281,3
230 printchr$(147):le=le+1:ifle=11then640
240 f2=0:forx=1064to1103:pokex,160:pokex+54272,2:next
250 forx=1143to2023step40:pokex,160:pokex+54272,2:next
260 forx=2022to1984step-1:pokex,160:pokex+54272,2:next
270 forx=1944to1104step-40:pokex,160:pokex+54272,2:next
280 forx=1355to1373:pokex,160:pokex+54272,2:next:forx=1395to1413step2
290 pokex,160:pokex+54272,2:next:forx=1435to1453step2:pokex,160:pokex+54272,2
300 next:forx=1475to1493:pokex,160:pokex+54272,2:next
310 forx=1to9:pokepp(x)+54272,1:next:forx=1630to1657:pokex,160:pokex+54272,2
320 next:poke1670,160:poke1670+54272,2:poke1697,160:poke1697+54272,2
330 poke1710,160:poke1710+54272,2:poke1737,160:poke1737+54272,2
340 forx=1750to1777:pokex,160:pokex+54272,2:next:forx=1711to1736
350 pokex+54272,1:next:poke646,6:printd$(9)tab(12)"123454321"
360 printd$(16)tab(7)"abcdefghijklmnopqrstuvwxyz":printd$(23)tab(17)sc
370 rn=int(rnd(1)*10)+1:ifan(rn)=1then370
380 an(rn)=1:y=len(an$(rn)):z=len(cl$(rn)):t$="":forx=1toy:t$=t$+"-":next
390 printd$(3)tab((40-z)/2)cl$(rn):printd$(5)tab((40-y)/2)t$
400 n=int(rnd(1)*9)+1:pokepp(n),81:forde=1to100:next
410 fb=-((peek(56320)and16)=0):iffb=0thenpokepp(n),32:goto400
420 fb=-((peek(56320)and16)=0):iffb=1then420
430 ap=1711:pokeap,30:f1=0:lv=peek(pp(n)-40)-48
440 forde=1to100:next:fb=-((peek(56320)and16)=0):iffb=1then500
450 js=peek(56320)and15:ifjs=11thendi=-1:goto480
460 ifjs=7thendi=1:goto480
470 goto440
480 ifpeek(ap+di)=160then440
490 pokeap,32:ap=ap+di:pokeap,30:goto440
500 ifpeek(ap-40)=32then440
510 l$=chr$(peek(ap-40)+64):forx=1toy:ifl$<>mid$(an$(rn),x,1)then550
520 f1=1:t$=left$(t$,x-1)+l$+mid$(t$,x+1):printd$(5)tab((40-y)/2)t$:sc=sc+lv
530 printd$(23)tab(17)sc:poke54277,15:poke54272,70:poke54273,100:poke54276,33
540 forde=1to75:next:poke54276,32:ift$=an$(rn)then570
550 next:iff1=1then570
560 f2=1:poke54277,45:poke54272,20:poke54273,5:poke54276,33:forde=1to150:next
570 poke54276,32:pokeap,32:pokeap-40,32:pokepp(n),32:ift$<>an$(rn)then400
580 iff2=1then610
590 sc=sc+10:printd$(23)tab(17)sc:forq=1to2:poke53280,14:forde=1to100:next
600 poke53280,13:forde=1to100:next:poke53280,3:forde=1to100:next:next
610 printd$(24)tab(11)"press fire button";:forde=1to50:next
620 fb=-((peek(56320)and16)=0):iffb=1then230
630 printd$(24)tab(11)" ";:forde=1to50:next:goto610
640 forde=1to1000:next:printchr$(147):poke53280,9:poke53281,8:poke646,7
650 printd$(9)tab(15)"game over":printd$(12)tab(12)"final score:"sc
660 ifsc>hsthenhs=sc
670 printtab(13)"high score:"hs
680 printd$(16)tab(4)pa$:forde=1to50:next:poke646,1:printd$(16)tab(4)pa$
690 forde=1to50:next:fb=-((peek(56320)and16)=0):iffb=1then220
700 poke646,7:goto680
710 data laudable,praiseworthy
720 data perforate,to pierce with holes in rows
730 data viscid,sticky or adhesive
740 data penurious,stingy
750 data ridiculous,absurd
760 data distraught,worried
770 data probe,investigate or examine
780 data taut,tight
790 data hazardous,dangerous
800 data tolerate,endure